package com.qk.common.exception;

import com.qk.common.enums.Code;

/**
 * @Author: chouh
 * @DateTime: 2025/10/10 16:19
 * @Description:
 */

public class CommonException extends BaseException{

        public CommonException(Code code) {
            super(code.getMsg());
        }

        public static void throwCommonException(Code code) {
            throw new CommonException(code);
        }
}
